/**
 * 
 */
package com.xingge.socketio.listener;

import com.corundumstudio.socketio.AuthorizationListener;
import com.corundumstudio.socketio.HandshakeData;

import cn.hutool.json.JSONUtil;

/**
 * @Title:  AppAuthorizationListener.java
 * @Package com.xingge.socketio.listener
 * @Description: 
 * @author: zhangwei
 * @date:   2022年8月6日
 * @time：	下午12:05:06
 * @version  v1.0
 * @Copyright: 2019 XingGe All rights reserved.
 */
public class AppAuthorizationListener implements AuthorizationListener {

	@Override
	public boolean isAuthorized(HandshakeData data) {
		// TODO Auto-generated method stub
		System.err.println("这里是AuthorizationListener");
		System.err.println(JSONUtil.toJsonStr(data.getHttpHeaders()));
		System.err.println(JSONUtil.toJsonStr(data));
		return true;
	}

}
